<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * Replace cached inserts with the actual results
 *
 * @param string $results
 * @return string
 */
function smarty_insert_pp_call($params, &$smarty) {
	if( $smarty->caching == 1 ) {
		$smarty->caching = 0;
		//
		$content = $smarty->fetch($params['file']);
		$smarty->caching = 1;
	} else {
		$content = $smarty->fetch($params['file']);
	}
	
	return $content;
}
//
?>